@echo off
echo Checking if Yarn is installed...
yarn --version >nul 2>&1
if %errorlevel% neq 0 (
    echo Yarn is not installed. Installing Yarn...
    npm install -g yarn
)

echo Setting memory limit and starting development server with Yarn...
set NODE_OPTIONS=--max-old-space-size=16384
set VUE_CLI_SERVICE_CONFIG_PATH=vue.config.dev.js
yarn serve
pause